-An Open Logic Text
This textbook is about meta-logic, a discipline where the study is of logic itself. Formal Logic is concerned with studying valid inferences using formal languages and proof systems to express these inferences. Meta-logic investigates the properties of these languages and proof systems.
The goal of the textbook is to give a student who’s had a first class in logic the mathematical background to understand and prove results about formal languages.
It’s organized in 3 parts:
The first part covers the basics of set theory. Set theory provides one answer to understanding how mathematical objects should be thought of. There’s good reason to become familiar with understanding and constructing mathematical proofs and to become fluent the language which forms the foundation for a lot of other work in math, CS, philosophy, logic, linguistics, etc…
The second part covers first-order logic, which we will return to the forall x textbook, but this section is worth taking a look at too. The reading here is less forgiving.
The last part connects logic with computability. As we mentioned, mathematician David Hilbert posed a question with the decision problem, whether there is a mechanical method which would decide, given a sentence of logic, whether it has a proof. We saw that such a method exists for truth functional logic – check the truth table – but it turns out truth tables are not possible for first-order logic, since the number of possible structures is infinite. Eventually Alonzo Church and Alan Turing prove that there is no method that could do this. This means that some problems are impossible – not just impractical – for computers to solve. That’s one of the most important discoveries in computer science.
Basic definitions for set theory.
Definition 1: A set is a well defined collection of objects, considered as an object itself. The objects making up the set are called elements or members of the set. There is no order to the elements and no multiplicity.
If a is an element of set X, then we write . And if not, we write .
Sets are conventionally denoted with capital letters.
There is a set with no members, and it’s called the empty set, denoted by .
There are two ways of describing a set.
One is by intensional definition, using a rule or semantic description. For example: is the set containing the siblings of Richard. (Written : is a sibling of Richard)
The other is by extension, listing each member of the set. For example:
We often have the choice of specifying a set either intensionally or extensionally. For example: : is one of the first four positive integers. So
Definition 2: If and are sets, then they are identical. (Extensionality) The identity of sets are given by their extensions (the elements they contain). This definition gives us a common proof strategy for proving set identities.
Definition 3: If every element of is an element of , then is a subset of , symbolically .
Note that it follows from this definition that every set is a subset of itself.
Also, it’s possible for a set to be an element of another set.
If and then . In other words, if every element of is an element of , but not every element of is an element of , then we say that is a proper subset of .
Definition 4: The set consisting of all subsets of is called the power set of , written
What are all the possible subsets of ?
Definition 5: The union of and , written , is the set of all things which are elements of or or both.
:
Venn diagrams can be useful to illustrate union and intersection.
Definition 6: The intersection of and , written , is the set of all things which are elements of both and .
Definition 7: If is a set of sets, then is the set of elements of elements of .
: belongs to an element of or
: there is a such that
Definition 8: If is a set of sets, then is the set of objects which all elements of have in common.
: belongs to every element of or
: for all ,
Definition 9 The difference is the set of all elements of which are not elements of .
: and
Sets have no order, but sometimes it is necessary to think of a collection in ordered terms. We use angle brackets to specify ordered pairs, such as . Order matters so .
Definition 10: Given sets and , their Cartesian product : and .
If and what is ?
Theorem 1 If has elements and has elements, then has elements.
Proof p. 10 (SLC)
Russell’s Paradox
In a village, the barber shaves everyone who does not shave themselves, and no one else.
The question that prompts the paradox is this: Does the barber shave himself?
1.3 Informal proof:
If has elements then has 2^n elements.
Given an element of , each subset of either includes or does not include (by definition of set), which gives us two possibilities.
The same reasoning holds for any element of .
We can see that this means there are 2 * 2 * … * 2 = 2^|| total possible combinations of elements of .
We’ll come back to mathematical induction.